﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;

namespace Kindohm.KSynth.UI
{
    public class WaveFormPointComparer : IComparer<WaveFormPoint>
    {
        public int Compare(WaveFormPoint point1, WaveFormPoint point2)
        {
            if (point2.Point.X > point1.Point.X)
                return -1;
            else if (point1.Point.X > point2.Point.X)
                return 1;
            return 0;
        }

    }
}
